gsk: Avoid using gtk css types in public api
authorMatthias Clasen <mclasen@redhat.com>
Tue, 17 Nov 2020 03:21:27 +0000 (22:21 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 17 Nov 2020 04:27:44 +0000 (23:27 -0500)
commit121e61cf01e70d0791e3b661dca57de19ed94ef9
tree5f3644b7beff891cc1346fac4756e952b6f7a0b4
parent2c9bf55eea71f1de0ee9dc93f030a4fd78200cc8
gsk: Avoid using gtk css types in public api

Using GtkCssSection in public headers here may be
ok from the C perspective, since it all ends up in
the same library anyway. But it causes circular
dependency problems for our gir files that are still
split by namespace.

To avoid this problem, copy the GtkCssLocation struct
struct as GskParseLocation, and pass take two of them
instead of a GtkCssSection in the error callback.

Update all users.

Fixes: #2454
demos/node-editor/node-editor-window.c
gsk/gskrendernode.h
gsk/gskrendernodeparser.c
tests/rendernode.c
tests/showrendernode.c
testsuite/gsk/compare-render.c
testsuite/gsk/node-parser.c